package com.gexin.model.order;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;

import java.util.Date;
import java.util.List;

/**
 * @author 黎峻
 * @Title: 用来导出 订单表的
 * @date 2019/12/2411:43
 */
@ExcelTarget("OrderListExcel")
public class OrderListExcel implements java.io.Serializable{

	private static final long serialVersionUID = 1L;

	/** 订单编号 */
	@Excel(name = "订单编号",orderNum = "0",needMerge = true,width = 20)
	private String  id;
	/** 商品信息 */
	@ExcelCollection(name = "商品信息",orderNum = "1")
	private List<OrderItemExcel> products;
	/** 支付金额 */
	@Excel(name = "支付金额",needMerge = true,orderNum = "2")
	private String total_amount;
	/** 收货地址-省 */
	@Excel(name = "收货地址-省",needMerge = true,orderNum = "3")
	private String addr_prov;
	/** 收货地址-市 */
	@Excel(name = "收货地址-市",needMerge = true,orderNum = "4")
	private String addr_city;
	/** 收货地址-区县 */
	@Excel(name = "收货地址-区县",needMerge = true,orderNum = "5")
	private String addr_area;
	/** 收货地址-详细地址 */
	@Excel(name = "收货地址-详细地址",needMerge = true,width=50,orderNum = "6")
	private String express_address;
	/** 收货人电话 */
	@Excel(name = "收货人电话",needMerge = true,width=20,orderNum = "7")
	private String express_phone;
	/** 邮编 */
	@Excel(name = "邮编",needMerge = true,orderNum = "8")
	private String express_zip_code;
	/** 姓名 */
	@Excel(name = "姓名",needMerge = true,width=20,orderNum = "9")
	private String express_receive_name;
	/** 购买日期 */
	@Excel(name = "购买日期",databaseFormat = "yyyy-MM-dd", format = "yyyy-MM-dd HH:mm:ss",needMerge = true,width=50,orderNum = "10")
	private Date createtime;
	/** 购买时间 */
	@Excel(name = "购买时间",databaseFormat = "yyyy-MM-dd HH:mm:ss", format = "yyyy-MM-dd HH:mm:ss",needMerge = true,width=50,orderNum = "11")
	private Date buytime;
	/** 状态 */
	@Excel(name = "状态",needMerge = true,orderNum = "12")
	private String state;
	/** 快递公司 */
	@Excel(name = "快递公司",needMerge = true,orderNum = "13")
	private String express_name;
	/** 发货订单号 */
	@Excel(name = "发货订单号",needMerge = true,width=20,orderNum = "14")
	private String express_no;
	/** 管理员备注 */
	@Excel(name = "管理员备注",needMerge = true,width=20,orderNum = "15")
	private String admin_remark;
	/** 用户备注信息 */
	@Excel(name = "用户备注信息",needMerge = true,width=20,orderNum = "16")
	private String remarks;

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public List<OrderItemExcel> getProducts() {
		return products;
	}

	public void setProducts(List<OrderItemExcel> products) {
		this.products = products;
	}

	public String getTotal_amount() {
		return total_amount;
	}

	public void setTotal_amount(String total_amount) {
		this.total_amount = total_amount;
	}

	public String getAddr_prov() {
		return addr_prov;
	}

	public void setAddr_prov(String addr_prov) {
		this.addr_prov = addr_prov;
	}

	public String getAddr_city() {
		return addr_city;
	}

	public void setAddr_city(String addr_city) {
		this.addr_city = addr_city;
	}

	public String getAddr_area() {
		return addr_area;
	}

	public void setAddr_area(String addr_area) {
		this.addr_area = addr_area;
	}

	public String getExpress_address() {
		return express_address;
	}

	public void setExpress_address(String express_address) {
		this.express_address = express_address;
	}

	public String getExpress_phone() {
		return express_phone;
	}

	public void setExpress_phone(String express_phone) {
		this.express_phone = express_phone;
	}

	public String getExpress_zip_code() {
		return express_zip_code;
	}

	public void setExpress_zip_code(String express_zip_code) {
		this.express_zip_code = express_zip_code;
	}

	public String getExpress_receive_name() {
		return express_receive_name;
	}

	public void setExpress_receive_name(String express_receive_name) {
		this.express_receive_name = express_receive_name;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getBuytime() {
		return buytime;
	}

	public void setBuytime(Date buytime) {
		this.buytime = buytime;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getExpress_name() {
		return express_name;
	}

	public void setExpress_name(String express_name) {
		this.express_name = express_name;
	}

	public String getExpress_no() {
		return express_no;
	}

	public void setExpress_no(String express_no) {
		this.express_no = express_no;
	}

	public String getAdmin_remark() {
		return admin_remark;
	}

	public void setAdmin_remark(String admin_remark) {
		this.admin_remark = admin_remark;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public OrderListExcel(String id, List<OrderItemExcel> products, String total_amount, String addr_prov, String addr_city, String addr_area, String express_address, String express_phone, String express_zip_code, String express_receive_name, Date createtime, Date buytime, String state, String express_name, String express_no, String admin_remark, String remarks) {
		this.id = id;
		this.products = products;
		this.total_amount = total_amount;
		this.addr_prov = addr_prov;
		this.addr_city = addr_city;
		this.addr_area = addr_area;
		this.express_address = express_address;
		this.express_phone = express_phone;
		this.express_zip_code = express_zip_code;
		this.express_receive_name = express_receive_name;
		this.createtime = createtime;
		this.buytime = buytime;
		this.state = state;
		this.express_name = express_name;
		this.express_no = express_no;
		this.admin_remark = admin_remark;
		this.remarks = remarks;
	}

	public OrderListExcel( ) {
	}

}
